package it.blueocean.acanto.taglibrary.jsp.taglib.tags.exceptions;

public class ComponentStateBeanPropertyNotFoundException extends Exception
{
	private String beanId_;

	private String propertyName_;

	public ComponentStateBeanPropertyNotFoundException(String paramString1, String paramString2)
	{
		this.beanId_ = paramString1;
		this.propertyName_ = paramString2;
	}

	public ComponentStateBeanPropertyNotFoundException(String paramString1, String paramString2, String paramString3)
	{
		super(paramString3);
		this.beanId_ = paramString1;
		this.propertyName_ = paramString2;
	}

	public ComponentStateBeanPropertyNotFoundException(String paramString1, String paramString2,
			Throwable paramThrowable)
	{
		super(paramThrowable);
		this.beanId_ = paramString1;
		this.propertyName_ = paramString2;
	}

	public ComponentStateBeanPropertyNotFoundException(String paramString1, String paramString2, String paramString3,
			Throwable paramThrowable)
	{
		super(paramString3, paramThrowable);
		this.beanId_ = paramString1;
		this.propertyName_ = paramString2;
	}

	public String toString()
	{
		if(getMessage() != null)
			return super.toString();
		return "Property '" + this.propertyName_ + "' for component '" + this.beanId_ + "' was not found";
	}
}
